const modules = {};

Promise.all([
    import("./auth/auth.js"),
    import("./platform/captcha.js"),
    import("./platform/config.js"),
    import("./platform/dept.js"),
    import("./platform/dict.js"),
    import("./platform/log.js"),
    import("./platform/menu.js"),
    import("./platform/post.js"),
    import("./platform/role.js"),
    import("./platform/tenant.js"),
    import("./platform/user.js"),
    import("./tool/generator/dataSource.js"),
    import("./tool/generator/template.js"),
]).then(([auth, captcha, config, dept, dict, log, menu, post, role, tenant, user, dataSource, template]) => {
    modules.auth = auth.default;
    modules.captcha = captcha.default;
    modules.config = config.default;
    modules.dept = dept.default;
    modules.dict = dict.default;
    modules.log = log.default;
    modules.menu = menu.default;
    modules.post = post.default;
    modules.role = role.default;
    modules.tenant = tenant.default;
    modules.user = user.default;
    modules.dataSource = dataSource.default;
    modules.template = template.default;
});

export default modules;
